@charset "utf-8";
.slides {
  display: inline-block;
  position: relative;
  width: 598px;
  height: 325px;
  margin: 0 auto 4em;
  border: 1em solid hsl(34, 49%, 75%);
  background-color: hsl(34, 49%, 60%);
}
.slides figure { overflow: hidden; }
.slides img, .slides figcaption {
  overflow: hidden;
  animation: fadeinout 100s infinite linear;
  animation-delay: inherit;
  position: absolute;
  opacity: 0;
}
.slides img {
  animation-name: fadeinout;
  top: 0;
  left: 0;
}
.slides figcaption {
  animation-name: slideinout;
  background: rgba(0,0,0,0.3); 
  color: white; 
  text-align: center;
  padding: 0.5em;
  margin: 0 auto;
  z-index: 2;
  max-width: 598px;
  max-height: 325px;
}
.slides:after {
  width: 116%;
  height: 1.5em;
  color: transparent;
  content: ".";
  position: absolute;
  left: -8%;
  bottom: 0px;
  border-radius: 50%;
  box-shadow: 0 4em 0.7em rgba(0,0,0,0.45);
}

.slide1 { animation-delay: 0s; }
.slide2 { animation-delay: 11s; }
.slide3 { animation-delay: 22s; }
.slide4 { animation-delay: 33s; }
.slide5 { animation-delay: 44s; }
.slide6 { animation-delay: 55s; }
.slide7 { animation-delay: 66s; }
.slide8 { animation-delay: 77s; }
.slide9 { animation-delay: 88s; }

@keyframes fadeinout {
  0%, 1%, 12%, 100% { opacity: 0; }
  2%, 9% { opacity: 1; }
}
@keyframes slideinout {
  0%, 2%, 9%, 100% { bottom: -20%; opacity: 0; }
  3%, 8% { bottom: 0%; opacity: 0.8; }
}
